import { RootState } from '@/shared/store';

export const getUserProfile = (state: RootState) => state.profile.user;

export const getUserProfileState = (state: RootState) => state.profile.getProfile;

export const getUserAvatar = (state: RootState) => state.profile.user.avatar;

export const getUserCards = (state: RootState) => state.profile.cards;

export const getUserActiveCard = (state: RootState) => state.profile.activeCard;

export const getAvatarList = (state: RootState) => state.profile.avatarList;

export const getEditProfileLoading = (state: RootState) => state.profile.editProfile.loading;

export const getEditProfileSuccess = (state: RootState) => state.profile.editProfile.success;

export const getCitiesList = (state: RootState) => state.profile.cities;
